package com.train.trainmanage.service;

import java.util.List;

import com.train.trainmanage.model.TrainModel;

public interface TrainService {
	
	List<TrainModel> listByTrainModel(TrainModel train);
	
	TrainModel selectById(Integer trainId);
	
	TrainModel getInfoById(Integer trainId);
	
	TrainModel getByTrainName(String trainName);
	
	int addTrain(TrainModel train);
	
	int editTrain(TrainModel train);
	
	int updateTrainLocoRelaStateByJob();
	
	int getCountByTrain(TrainModel train);
	
	int addTrainByExcel(List<TrainModel> trainList);

	int deleteAll();
}
